// pages/renthouse/renthouse.js
Page({

  /**
   * 页面的初始数据
   */
  data: {

    // 筛选标签的数据
    filter_tags_array: [{
        id: 0,
        name: "全部"
      },
      {
        id: 1,
        name: "精选"
      },
      {
        id: 2,
        name: "个人"
      },
      {
        id: 3,
        name: "经纪人"
      },
      {
        id: 4,
        name: "新上房源"
      },
      {
        id: 5,
        name: "小户型"
      },
      {
        id: 6,
        name: "有电梯"
      },
      {
        id: 7,
        name: "优质教育"
      },
      {
        id: 8,
        name: "低总价"
      },
      {
        id: 9,
        name: "满两年"
      },
      {
        id: 10,
        name: "满五年"
      },
      {
        id: 11,
        name: "随时看房"
      },
      {
        id: 12,
        name: "南北通透"
      },


    ],

    // 出租房数据
    old_house_list: [{
        room: "智慧公寓1室1厅1卫",
        type: "1室1厅1卫",
        area: "50",
        community: "领秀城",
        price: "1200",
        total: "60万",
        state: "在售",
        src: "https://img2.baidu.com/it/u=209206436,296779899&fm=11&fmt=auto&gp=0.jpg",
      },
      {
        room: "花园洋房3室2厅1卫",
        type: "3室2厅1卫",
        area: "144",
        community: "时代新城",
        price: "2500",
        total: "220万",
        state: "预售",
        src: "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fpic1.ajkimg.com%2Fdisplay%2Fhj%2Fa97a688e074135dba677c1aa41c22133%2F150x115c.jpg%3Ft%3D1&refer=http%3A%2F%2Fpic1.ajkimg.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1622297520&t=b99cf2cf9d22f805c13e64685eac8607",
      },
      {
        community: "中央经典城",
        room: "小高层2室2厅1卫",
        type: "2室2厅1卫",
        area: "98",
        price: "1500",
        total: "108万",
        state: "售罄",
        src: "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fpic.myfun7.com%2Foss%2Fonline%2FsearchPhotoSale%2F2019%2F08%2F24%2F22935bb11ebc412f97c4dc46e467879a.jpg%3Fx-oss-process%3Dimage%2Fresize%2Cm_fill%2Ch_180%2Cw_135&refer=http%3A%2F%2Fpic.myfun7.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1622297520&t=c5d0cd26d92669a50530b4598ef13a6b",
      },
      {
        room: "经典别墅4室2厅2卫",
        type: "4室2厅2卫",
        area: "165",
        community: "翡翠郡",
        price: "2800",
        total: "290万",
        total: "",
        state: "在售",
        src: "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fpic1.ajkimg.com%2Fdisplay%2Fhj%2F8178fe82b21e13fde8055f8d4258c8c2%2F150x115c.jpg%3Ft%3D1&refer=http%3A%2F%2Fpic1.ajkimg.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1622297520&t=22b898de6d3ce6fde12e9a623151a5a4",
      },
      {
        room: "花园洋房3室2厅1卫",
        type: "3室2厅1卫",
        area: "144",
        community: "纽伦港小镇",
        price: "2300",
        total: "130万",
        state: "清盘",
        src: "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fpic1.ajkimg.com%2Fdisplay%2Fhj%2F053f9d5075fce18fba9473cd524ce177%2F150x115c.jpg%3Ft%3D1&refer=http%3A%2F%2Fpic1.ajkimg.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1622297606&t=21a2dbb6c5a678d8370c544571f08519",
      },
      {
        room: "5A级写字楼1室",
        type: "1室1厅",
        area: "200",
        community: "沂城之门CBD",
        price: "7800",
        total: "366万",
        state: "预售",
        src: "https://img2.baidu.com/it/u=2974258492,3605019911&fm=11&fmt=auto&gp=0.jpg",
      },

    ]

  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {

  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  }
})